<template>
    <el-dialog
        title="电脑IP"
        :close-on-click-modal="false"
        :visible.sync="visible"
        class="SHZY-dialog SHZY-dialog_center"
        lock-scroll
        width="30%"
    >
        <el-table
            v-loading="listLoading"
            :data="list"
            height="350px"
            custom-column
        >
            <el-table-column label="电脑IP" prop="computerIp" align="left">
            </el-table-column>
        </el-table>
    </el-dialog>
</template>
<script>
export default {
    components: {},
    props: [],
    data() {
        return {
            btnLoading: false,
            loading: false,
            visible: false,
            list: [],
            listLoading: true,
            multipleSelection: [],
            computerIp: undefined
        };
    },
    computed: {},
    watch: {},
    created() {},
    mounted() {},
    methods: {
        goBack() {
            this.$emit("refresh");
        },
        init(ip) {
            this.computerIp = ip || "[]";
            this.visible = true;
            this.$nextTick(() => {
                this.initData();
            });
        },
        initData() {
            this.listLoading = true;
            if (this.computerIp) {
                this.list = JSON.parse(this.computerIp);
                this.listLoading = false;
            }
        }
    }
};
</script>
